<template>
  <view class="title_row m-t20">
    <view class="title_row_left">
      <view class="title_row_left-icon">
        <img-oss src="/static/images/empty.png" width="40rpx" height="40rpx"/>
      </view>
      <view class="title_row_left-text">{{title}}</view>
    </view>
    <view >
      <slot v-if="isRight"></slot>
    </view>
  </view>
</template>
<script>
export default {
  name: "title_row",
  props:{
    isRight:{
      type:Boolean,
      default:false
    },
    title:{
      type:String,
      default:""
    }
  }
}
</script>
<style scoped lang="scss">
.title_row {
  padding-top: 22rpx;
  padding-bottom: 22rpx;
  display: flex;
  justify-content: space-between;
  align-items: center;

  &_left {
    display: flex;
    align-items: center;

    &-icon {
      margin-right: 20rpx;
    }

    &-text {
      font-size: 32rpx;
      font-weight: 500;
    }
  }
}
</style>